<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminResourcesForm.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<sx:head/>
  </head>
  
    <BODY background="tutu/11.jpg">
   <h3><s:property value="#request.resourcesTip"/>操作
  </h3>
    <form action=<s:property value="#request.resourcesTip"/>  method="post"  enctype="multipart/form-data">
   			<input type="hidden" name="pageSize" value="${pageSize}" />
   			<input type="hidden" name="request_locale" value="zh_CN" />
   			
   			<input type="hidden" name="re.rname" value="${re.rname}" />
   			<input type="hidden" name="re.rpath" value="${re.rpath}" />
   			
   			
   			<s:if test="re.rno==0">
   			<h3>添加资源</h3>
   			资源类型:<select name="re.rtype">  
   		   			
  					<option value="1">课件</option>
  					<option value="2">试卷</option>   
  					<option selected="selected" value="3">视频</option>   
  					
					</select>  <br>
   			</s:if>
   			<s:else>
   			<h3>修改资源信息</h3>
   			资源编号:${re.rno }<br>
   			<input type="hidden" name="re.rno" value="${re.rno}" /><br>
   			资源类型:${re.abctype }<br>
   			<input type="hidden" name="re.rtype" value="${re.rtype}" /><br>
   			<img src='ico/<s:property value="re.rtype"/>.ico' style="width: 40px" alt='<s:property value="re.abctype"/>'/><br><br>
   			</s:else>
   			
   			
   			
   			<s:if test="re.rno==0">
   			文件:
   			</s:if>
   			<s:else>
   			
   			替换:
   			</s:else>
   			<input type="file" name="up"  ><br>
   			
   			简介:<br><br>
   				
   			<textarea  name="re.rtext" style="  height: 100px; width: 320px"  >${re.rtext}</textarea><br>
   			
   			
   			
   			
   			
   			<input type="submit" value="确定" style=" background-color: Silver"/>
   			
   			<input type="reset" value="重置" style="">
   		
   		</form>
  </body>
</html>
